home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
numbak.zip
/
NUMBAK.DOC
< prev
next >
Wrap
Text File
|
1993-01-03
|
728b
|
28 lines
NUMBAK is a little .com file I wrote to number .BAK files.
It scans the directory for the highest numbered backup (filename.nnn)
and adds one to it, and renames the .bak file.
Thus, if you have a file you're working on, "FOO.C", and have edited it,
you have FOO.C and FOO.BAK in your directory.
You type: numbak *
and get:
Numbak by Ward Christensen, 7/27/92
<FOO.BAK> renamed to <FOO.001>.
If you then edit it again, so you have:
foo.c
foo.001
foo.bak
You type: numbak *
and get:
Numbak by Ward Christensen, 7/27/92
<FOO.BAK> renamed to <FOO.002>.
etc.
You can always erase older files, but it is recommended that you keep
the highest numbered backup so that the numbers continue on.